package com.zoffy.oj_backend.service;


import com.baomidou.mybatisplus.extension.service.IService;

import com.zoffy.oj_backend.model.entity.User;

import com.zoffy.oj_backend.model.vo.UserVo;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.multipart.MultipartFile;

/**
* @author 86170
* @ description 针对表【user(用户)】的数据库操作Service
* @ createDate 2024-02-19 00:29:02
*/
public interface UserService extends IService<User> {
    long userRegistry(String userAccount,String userPassword, String checkPassword);
    UserVo userLogin(HttpServletRequest request, String userAccount, String userPassword);
    UserVo currentUserVo(HttpServletRequest request);
    boolean uploadAvatar(HttpServletRequest request, MultipartFile file);
}
